export const columnsArr = [
  {
    title: '订单号',
    dataIndex: 'number',
    className: 'table',
    align: 'center',
    ellipsis: true
  },
  {
    title: '服务对象',
    dataIndex: 'name',
    className: 'table',
    align: 'center'
  },
  {
    title: '服务护士',
    dataIndex: 'nurseName',
    className: 'table',
    align: 'center'
  },
  {
    title: '服务项目',
    dataIndex: 'serviceName',
    className: 'table',
    align: 'center'
  },
  {
    title: '服务地址',
    dataIndex: 'address',
    className: 'table',
    ellipsis: true,
    align: 'center'
  },
  {
    title: '申请时间',
    dataIndex: 'createdAt',
    className: 'table',
    align: 'center',
    sort: true
  },
  {
    title: '审核状态',
    dataIndex: 'status',
    className: 'table',
    align: 'center',
    slots: {
      customRender: 'status'
    }
  },
  {
    title: '操作',
    dataIndex: 'operation',
    className: 'table',
    align: 'center',
    fixed: 'right',
    slots: {
      customRender: 'operation'
    }
  }
]

export const orderListStatusObj = {
  15: '已通过',
  2: '已通过',
  3: '已通过',
  4: '已通过',
  5: '已通过',
  6: '未通过',
  14: '待审核'
}

export const statusListArr = [
  {
    title: '全部',
    status: ''
  },
  {
    title: '待审核',
    status: 14
  },
  {
    title: '已通过',
    status: 2
  },
  {
    title: '未通过',
    status: 6
  }
]

export const statusColorObj = {
  15: 'success',
  2: 'success',
  5: 'success',
  3: 'success',
  4: 'success',
  6: 'error',
  14: '#f50'
}

export const dataObj = {
  loading: true,
  list: [],
  time: [],
  id: '', //护理报告ID
  number: '',
  statusAct: 0,
  isEdit: 0,
  nurseReportVisible: false,
  rejectVisible: false,
  cause: '',
  visible: false,
  reasonForm: {
    value: ''
  },
  rules: {
    value: [
      {
        required: true,
        message: '请填写原因!',
        trigger: 'blur'
      }
    ]
  }
}
